-- Mapping data with "desc" stored directly by vim.keymap.set().
--
-- Please use this mappings table to set keyboard mapping since this is the
-- lower level configuration and more robust one. (which-key will
-- automatically pick-up stored data by this setting.)
return {
  -- first key is the mode
  n = {
    -- second key is the lefthand side of the map
    -- mappings seen under group name "Buffer"
    ["<leader>bb"] = { "<cmd>tabnew<cr>", desc = "New tab" },
    ["<leader>bc"] = { "<cmd>BufferLinePickClose<cr>", desc = "Pick to close" },
    ["<leader>bj"] = { "<cmd>BufferLinePick<cr>", desc = "Pick to jump" },
    ["<leader>bt"] = { "<cmd>BufferLineSortByTabs<cr>", desc = "Sort by tabs" },
    -- tables with the `name` key will be registered with which-key if it's installed
    -- this is useful for naming menus
    ["<leader>b"] = { name = "Buffers" },
    -- quick save
    -- ["<C-s>"] = { ":w!<cr>", desc = "Save File" },  -- change description but the same command

    -- ["<C-/>"] = { "<cmd>ToggleTerm<cr>", desc = "Toggle Terminal" },
    ["<C-/>"] = { "<cmd>ToggleTerm size=10 direction=horizontal<cr>", desc = "Toggle Terminal" },

    -- Togle css hex color hide visible
    -- ["<leader>mm"] = { "<cmd>ColorizerToggle<cr>", desc = "Colorizer Toggle" },
    --
    -- SET RULE 80
    ["<leader>rr"] = { "<cmd>set colorcolumn=80<cr>", desc = "Rule 80" },
    ["<leader>RR"] = { "<cmd>set colorcolumn=0<cr>", desc = "Rule 0" },
    -- Strip Whitespace
    -- ["<leader>."] = { "<cmd>StripWhitespace<cr>", desc = "Strip Whitespace" },
    -- ["<leader>e"] = { "<cmd>Neotree float toggle<cr>", desc = "Toggle Explorer" },
    ["<leader>e"] = { "<cmd>Neotree toggle<cr>", desc = "Toggle Explorer" },
  },
  t = {
    -- setting a mapping to false will disable it
    -- ["<esc>"] = false,
  },
}
